package com.yunxie.novelservice.application.convert;

import com.yunxie.novelservice.application.dto.NovelDetailsDTO;
import com.yunxie.novelservice.domain.entity.NovelDetailsBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 小说详情DTO转换器
 */
@Mapper
public interface NovelDetailsDTOConverter {
    NovelDetailsDTOConverter INSTANCE =   Mappers.getMapper(NovelDetailsDTOConverter.class);
    NovelDetailsDTO convertBoToDto(NovelDetailsBo novelDetailsBo);
   NovelDetailsBo convertDtoToBo(NovelDetailsDTO novelDetailsDTO);
}
